[INFO] cloning repository https://github.com/buisyhiep/rust_block_chain_tutorial
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/buisyhiep/rust_block_chain_tutorial" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuisyhiep%2Frust_block_chain_tutorial", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuisyhiep%2Frust_block_chain_tutorial'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 8962947ec8bdf7161fe110bc73eb0663a5090c4d
[INFO] fixing buisyhiep/rust_block_chain_tutorial against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuisyhiep%2Frust_block_chain_tutorial" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/buisyhiep/rust_block_chain_tutorial
[INFO] finished tweaking git repo https://github.com/buisyhiep/rust_block_chain_tutorial
[INFO] tweaked toml for git repo https://github.com/buisyhiep/rust_block_chain_tutorial written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/buisyhiep/rust_block_chain_tutorial on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/buisyhiep/rust_block_chain_tutorial already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 9d1dd740c841fd37b9ddcf8a39faabe5be0e9f44d586e5dfb8ce253ec2386cd3
[INFO] running `Command { std: "docker" "start" "9d1dd740c841fd37b9ddcf8a39faabe5be0e9f44d586e5dfb8ce253ec2386cd3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "9d1dd740c841fd37b9ddcf8a39faabe5be0e9f44d586e5dfb8ce253ec2386cd3" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9d1dd740c841fd37b9ddcf8a39faabe5be0e9f44d586e5dfb8ce253ec2386cd3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "9d1dd740c841fd37b9ddcf8a39faabe5be0e9f44d586e5dfb8ce253ec2386cd3" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking RustPractice v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: struct `Pallet` is never constructed
[INFO] [stdout]  --> src/balances.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub struct Pallet {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `set_balance`, `balance`, and `transfer` are never used
[INFO] [stdout]   --> src/balances.rs:8:12
[INFO] [stdout]    |
[INFO] [stdout]  7 | impl Pallet {
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout]  8 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 14 |     pub fn set_balance(&mut self, who: &String, amount: u128){
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub fn balance(&self, who: &String) -> u128 {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 22 |     pub fn transfer(
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `balances` in this scope
[INFO] [stdout]   --> src/balances.rs:51:28
[INFO] [stdout]    |
[INFO] [stdout] 51 |         let mut balances : balances::Pallet = balances::Pallet::new();
[INFO] [stdout]    |                            ^^^^^^^^ use of unresolved module or unlinked crate `balances`
[INFO] [stdout]    |
[INFO] [stdout] help: to make use of source file src/balances.rs, use `mod balances` in this file to declare the module
[INFO] [stdout]   --> src/main.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 + mod balances;
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]    |
[INFO] [stdout] 49 +     use crate::balances;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `balances` in this scope
[INFO] [stdout]   --> src/balances.rs:51:47
[INFO] [stdout]    |
[INFO] [stdout] 51 |         let mut balances : balances::Pallet = balances::Pallet::new();
[INFO] [stdout]    |                                               ^^^^^^^^ use of unresolved module or unlinked crate `balances`
[INFO] [stdout]    |
[INFO] [stdout] help: to make use of source file src/balances.rs, use `mod balances` in this file to declare the module
[INFO] [stdout]   --> src/main.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 + mod balances;
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 49 +     use crate::balances::Pallet;
[INFO] [stdout]    |
[INFO] [stdout] help: if you import `Pallet`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 51 -         let mut balances : balances::Pallet = balances::Pallet::new();
[INFO] [stdout] 51 +         let mut balances : balances::Pallet = Pallet::new();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `balances` in this scope
[INFO] [stdout]   --> src/balances.rs:61:28
[INFO] [stdout]    |
[INFO] [stdout] 61 |         let mut balances : balances::Pallet = balances::Pallet::new();
[INFO] [stdout]    |                            ^^^^^^^^ use of unresolved module or unlinked crate `balances`
[INFO] [stdout]    |
[INFO] [stdout] help: to make use of source file src/balances.rs, use `mod balances` in this file to declare the module
[INFO] [stdout]   --> src/main.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 + mod balances;
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]    |
[INFO] [stdout] 49 +     use crate::balances;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `balances` in this scope
[INFO] [stdout]   --> src/balances.rs:61:47
[INFO] [stdout]    |
[INFO] [stdout] 61 |         let mut balances : balances::Pallet = balances::Pallet::new();
[INFO] [stdout]    |                                               ^^^^^^^^ use of unresolved module or unlinked crate `balances`
[INFO] [stdout]    |
[INFO] [stdout] help: to make use of source file src/balances.rs, use `mod balances` in this file to declare the module
[INFO] [stdout]   --> src/main.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 + mod balances;
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 49 +     use crate::balances::Pallet;
[INFO] [stdout]    |
[INFO] [stdout] help: if you import `Pallet`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 61 -         let mut balances : balances::Pallet = balances::Pallet::new();
[INFO] [stdout] 61 +         let mut balances : balances::Pallet = Pallet::new();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `RustPractice` (bin "RustPractice" test) due to 4 previous errors
[INFO] running `Command { std: "docker" "inspect" "9d1dd740c841fd37b9ddcf8a39faabe5be0e9f44d586e5dfb8ce253ec2386cd3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9d1dd740c841fd37b9ddcf8a39faabe5be0e9f44d586e5dfb8ce253ec2386cd3", kill_on_drop: false }`
[INFO] [stdout] 9d1dd740c841fd37b9ddcf8a39faabe5be0e9f44d586e5dfb8ce253ec2386cd3
